package com.neuedu.spring.controller;

import com.neuedu.spring.service.IUserService;

import java.util.List;

/**
 * 项目：      spring-framework
 * 类名:       UserController
 * 创建时间：  2024/3/12 09：34
 * 描述 :
 * 作者 :     张金山
 * QQ :     314649444
 * Site:      https://jshand.gitee.io
 */
public class UserController {

    IUserService userService2;

    public List queryUser(){
        System.out.println("UserController.queryUser被调用了");
        return userService2.listUser();
    }

//
//    public IUserService getUserService() {
//        return userService;
//    }
//
//    public void setUserService(IUserService userService) {
//        this.userService = userService;
//    }


    public IUserService getUserService2() {
        return userService2;
    }

    public void setUserService2(IUserService userService2) {
        this.userService2 = userService2;
    }
}
